package com.zucc.common.utils;

import java.util.ArrayList;
import java.util.List;

import com.zucc.core.po.Equipment;

public class GetFriends {

	public List<String> getFriends(String list) {
		if(list!=null&&!list.equals("")) {
			List<String> eqIds=new ArrayList<String>();
			while (list.indexOf(",")>0) {
				String id=list.substring(0, list.indexOf(","));
				list=list.substring(list.indexOf(",")+1,list.length());
				Equipment equipment=new Equipment();
				eqIds.add(id);
			}
			return eqIds;
			}else {
				return null;
			}
	}
}
